package dbobjects;

import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;
import dbreflection.tablemanagement.DOField;

/**
 * User: [J0k3r]
 * Date: 16.01.2009
 * Time: 16:28:00
 */
@DOTable(table = "db_journal_template", pk = "id")
public class DBJournalTemplate extends DatabaseObject
{
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "journal_id")
    private Integer journalId;
    @DOField(column = "object_template_id", orderBy = true)
    private Integer templateId;

    public DBJournalTemplate() {
        this.id = UNASSIGNEDINT;
        this.journalId = UNASSIGNEDINT;
        this.templateId = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJournalId() {
        return journalId;
    }

    public void setJournalId(Integer journalId) {
        this.journalId = journalId;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }
}
